//
// Created by bleedingfight on 2020/6/10.
//

#ifndef MYCIRCULARQUEUE_MYCIRCULARQUEUE_H
#define MYCIRCULARQUEUE_MYCIRCULARQUEUE_H


class MyCircularQueue {
private:
    int head=-1;
    int tail = -1;
    int size = 0;
    int* queue;
    int count=0;
public:
    MyCircularQueue(int len);
    bool enQueue(int elem);
    int Rear();
    bool isFull();
    bool deQueue();
    bool isEmpty();
    int Front();
    ~MyCircularQueue();

};


#endif //MYCIRCULARQUEUE_MYCIRCULARQUEUE_H
